package com.web709.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
@TableName("activities")
@ApiModel(value = "Activity", description = "活动实体类")
public class Activity {
    //活动表
    //id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //活动标题
    private String title;
    //活动内容
    private String description;
    //活动开始时间
    private LocalDateTime startTime;
    //活动结束时间
    private LocalDateTime endTime;
    //活动创建时间

    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //活动创建人id
    private Integer adminId;
    //活动图片路径
    private String imgPath;
}
